const path = require('path');
const Load = require('../utils/_load');
const Modules = Load.loadFileSync(
  path.resolve(__dirname, '../service/'),
  Load.origin,
  [__filename]
);

// 因为service 之间有相互调用,所以需要直接加载到exports
Object.keys(Modules).forEach(fileName => {
  module.exports[fileName] = Modules[fileName];
});
